<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <script type="text/javascript">
        //window
        //1.所有的全局变量都是window的属性
        //2.所有的全局函数都是window的函数
//        console.log(window.age);
//    function Dog(){
//        var age = 1000;
//        console.log(window.age);
//    }
////    window.Dog();
//    Dog();

//     function Dog(){
//         console.log(this);
//     }
////        Dog();
//
//        var dog1 = new Dog();
//        window.alert(0);

//        window.console.log('ieieieie');

        //动态跳转
        // window.location.href = 'http://baidu.com';
        location.href = 'http://www.520it.com';
    </script>
</head>
<body>

</body>
</html>